From 57e8c48a0cca13f4b71487f01f3e3545ee02d244 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 8 Jul 2004 21:19:23 +0000 Subject: [PATCH] Allow to restore the default search function. (#145365, John Finlay) * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow to restore the default search function. (#145365, John Finlay) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtktreeview.c | 4 ++-- 5 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index fea6cb42a5..8ae612cf5a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-07-08 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow + to restore the default search function. (#145365, John Finlay) + * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak references to the drag context. (#144324, Alex Larsson) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index fea6cb42a5..8ae612cf5a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2004-07-08 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow + to restore the default search function. (#145365, John Finlay) + * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak references to the drag context. (#144324, Alex Larsson) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index fea6cb42a5..8ae612cf5a 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2004-07-08 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow + to restore the default search function. (#145365, John Finlay) + * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak references to the drag context. (#144324, Alex Larsson) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index fea6cb42a5..8ae612cf5a 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2004-07-08 Matthias Clasen + * gtk/gtktreeview.c (gtk_tree_view_set_search_equal_func): Allow + to restore the default search function. (#145365, John Finlay) + * gdk/x11/gdkdnd-x11.c (xdnd_send_xevent): Don't leak references to the drag context. (#144324, Alex Larsson) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 42ecbdcc39..2192169f58 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -11816,7 +11816,8 @@ gtk_tree_view_get_search_equal_func (GtkTreeView *tree_view) /** * gtk_tree_view_set_search_equal_func: * @tree_view: A #GtkTreeView - * @search_equal_func: the compare function to use during the search + * @search_equal_func: the compare function to use during the search, or %NULL + * to restore the default function * @search_user_data: user data to pass to @search_equal_func, or %NULL * @search_destroy: Destroy notifier for @search_user_data, or %NULL * @@ -11831,7 +11832,6 @@ gtk_tree_view_set_search_equal_func (GtkTreeView *tree_view, GtkDestroyNotify search_destroy) { g_return_if_fail (GTK_IS_TREE_VIEW (tree_view)); - g_return_if_fail (search_equal_func !=NULL); if (tree_view->priv->search_destroy) (* tree_view->priv->search_destroy) (tree_view->priv->search_user_data); -- 2.30.2